package org.dromara.pe.service;

import org.dromara.pe.domain.Certificate;
import org.dromara.pe.domain.vo.CertificateVo;
import org.dromara.pe.domain.bo.CertificateBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 体测合格证书Service接口
 *
 * @author Lion Li
 * @date 2024-09-02
 */
public interface ICertificateService {

    /**
     * 查询体测合格证书
     */
    CertificateVo queryById(Long certificateId);

    /**
     * 查询体测合格证书列表
     */
    TableDataInfo<CertificateVo> queryPageList(CertificateBo bo, PageQuery pageQuery);

    /**
     * 查询体测合格证书列表
     */
    List<CertificateVo> queryList(CertificateBo bo);

    /**
     * 新增体测合格证书
     */
    Boolean insertByBo(CertificateBo bo);

    /**
     * 修改体测合格证书
     */
    Boolean updateByBo(CertificateBo bo);

    /**
     * 校验并批量删除体测合格证书信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
